package com.hqyj.emb.system.service.Impl;

import com.hqyj.emb.system.dao.Impl.RoleDaoImpl;
import com.hqyj.emb.system.dao.RoleDao;
import com.hqyj.emb.system.model.Role;
import com.hqyj.emb.system.model.User;
import com.hqyj.emb.system.service.RoleService;

import java.util.List;
import java.util.Map;

public class RoleServiceImpl implements RoleService {
    RoleDao roleDao=new RoleDaoImpl();
    @Override
    public List<Role> queryAllUserRole() {
        return roleDao.queryAllUserRole();
    }

    @Override
    public int addUserRole(Role role) {
        return roleDao.addUserRole(role);
    }

    @Override
    public int deleteRoleByUserId(int roleId) {
        return roleDao.deleteRoleByUserId(roleId);
    }

    @Override
    public Role queryUserRole(int roleId) {
        return roleDao.queryUserRole(roleId);
    }

    @Override
    public int updateUserRole(Role role) {
        return roleDao.updateUserRole(role);
    }

    @Override
    public Role queryRoleByRoleId(int roleId) {
        return roleDao.queryRoleByRoleId(roleId);
    }

    @Override
    public List<Role> queryAllUserRoleName() {
        return roleDao.queryAllUserRoleName();
    }

    @Override
    public List<Role> findTj(Map<String, String[]> parameterMap) {
        return roleDao.findTj(parameterMap);
    }
}
